WooCommerce\Square\Framework\PaymentGateway\ApplePay\Payment_Gateway_Apple_Pay B

Total Complexity 98
Dependencies 21
Dependents 4
Total lines 1,001
Lines of code 389
Logical lines of code 180
Comment lines 390
Methods 35
Properties 5

Methods 35

Method Rating Maintainability Complexity Lines of code
get_product_payment_request()
A
49 11 28
process_payment()
A
45 8 40
build_payment_request_lines()
A
45 6 49
recalculate_totals()
S
49 7 30
build_payment_request()
S
46 5 42
get_cart_payment_request()
S
55 6 18
is_configured()
S
66 5 8
set_customer_taxable_address()
S
61 4 12
update_customer_addresses()
S
62 4 11
get_supporting_gateways()
S
64 3 10
is_available()
S
71 3 5
log()
S
65 3 9
init()
S
66 3 8
get_supported_networks()
S
60 2 13
get_capabilities()
S
62 2 11
get_api()
S
65 2 9
get_processing_gateway()
S
72 2 5
get_accepted_currencies()
S
74 2 4
__construct()
S
69 2 7
add_order_data()
S
71 2 6
get_stored_payment_response()
S
66 2 8
clear_payment_data()
S
74 1 5
store_payment_response()
S
80 1 3
store_payment_request()
S
80 1 3
is_cert_configured()
S
80 1 3
is_enabled()
S
79 1 3
is_test_mode()
S
79 1 3
get_merchant_id()
S
80 1 3
get_cert_path()
S
80 1 3
get_stored_payment_request()
S
79 1 3
format_price()
S
79 1 3
get_cart_totals()
S
64 1 10
process_test_payment()
S
68 1 8
get_button_style()
S
79 1 3
get_plugin()
S
82 1 3